package com.yyfax.pay.third.model.to.quickpay;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.yyfax.pay.third.model.to.quickpay.xml.QryTxnMsgContent;
import com.yyfax.pay.third.model.to.quickpay.xml.TxnMsgContent;

/**
 * 查询订单响应
 * 
 * @author xiemh
 * @date 2017-04-12 15:27:17
 * @since v1.0.0
 */
@SuppressWarnings("serial")
public class QueryOrderQuickPayContent extends BaseQuickPayContent {
	private String version = "1.0";

	@XStreamAlias("QryTxnMsgContent")
	private QryTxnMsgContent qryTxnMsgContent;
	
	@XStreamAlias("TxnMsgContent")
	private TxnMsgContent txnMsgContent;

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public QryTxnMsgContent getQryTxnMsgContent() {
		return qryTxnMsgContent;
	}

	public void setQryTxnMsgContent(QryTxnMsgContent qryTxnMsgContent) {
		this.qryTxnMsgContent = qryTxnMsgContent;
	}

	public TxnMsgContent getTxnMsgContent() {
		return txnMsgContent;
	}

	public void setTxnMsgContent(TxnMsgContent txnMsgContent) {
		this.txnMsgContent = txnMsgContent;
	}
	
	/**
	 * xml转换成实体类
	 */
	public static QueryOrderQuickPayContent fromXml(String xml) {
		return (QueryOrderQuickPayContent) fromXml(xml, QueryOrderQuickPayContent.class);
	}

}
